package com.lansea.wms.model;

import com.lansea.wms.entity.ValidClass;
import com.lansea.wms.enums.CategoryTypeEnum;
import com.lansea.wms.model.base.BaseUser;
import com.lansea.wms.util.EnumUtil;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.Min;
@Data
@Repository
@ApiModel(value = "Category", description = "类型字典")
public class Category extends BaseUser {

    @Min(value = 1, message = "id 非法", groups = {ValidClass.EditForm.class})
    private Integer id;

    @Min(value = 1, message = "请选择类型")
    private Integer type;

    private String name;

    private String remark;

    private String typeName;


}
